using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
    [Table("hrm_mp_position_types")]
    public class MpPositionType
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PosTypeId", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("pos_type_seq")]
        public int PosTypeId { get; set; }

        [DataMember, Display(Name = "PosTypeName", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("pos_type_name")]
        public string PosTypeName { get; set; }

        [DataMember, Display(Name = "PosTypeNameShort", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("pos_type_name_short")]
        public string PosTypeNameShort { get; set; }

        [DataMember, Display(Name = "PosTypeEng", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("pos_type_eng")]
        public string PosTypeEng { get; set; }

        [DataMember, Display(Name = "PosTypeEngShort", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("pos_type_eng_short")]
        public string PosTypeEngShort { get; set; }

		[ForeignKey("EmpType")]
        [DataMember, Display(Name = "EmpTypeId", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("emp_type_seq")]
        public Nullable<int> EmpTypeId { get; set; }

        [DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("remarks")]
        public string Remarks { get; set; }

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MpPositionTypesResource))]
        [Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        [DataMember]
        public virtual HRM.MasEmployeeType EmpType { get; set; }

    }
}